package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 张琪
 * @date 2020/11/27
 * @describe
 */
@TableName("tb_item_cat")
@Data
@Accessors(chain = true)
public class ItemCat extends BasePojo {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long parentId;
    private String name;
    private Integer status;         //上架下架的状态判断
    private Integer sortOrder;
    //    MySQL中的boolean用tinyint(1) 表示 1为true, 0为false, 在POJO中直接用Boolean来表示
    private Boolean isParent;

    public String getText() {
        return name;
    }
}
